import axios from 'axios';

export type Login = {
  code: string;
  password: string;
  username: string;
  uuid: string;
};
// 登录接口
export function login(params: Login) {
  return axios({
    url: '/login',
    method: 'post',
    data: params,
  });
}


//根据token获取用户信息
export function getUserInfo() {
  return axios.get('/getInfo');
}
